package work.xiaohong.jijin.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;

/**
 * 
 * @author xiaohong
 * @since 2021-11-07 13:37:13
 */
@Getter
@Setter
@TableName("jijin_free")
@Schema(name = "可赎基金对象", description = "")
public class Free implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID",accessMode = READ_ONLY)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "基金代码")
    @TableField("code")
    private String code;

    @Schema(description = "基金名称")
    @TableField("name")
    private String name;

    @Schema(description = "可赎份额")
    @TableField("freeNumber")
    private Float freeNumber;

    @Schema(description = "创建时间",accessMode = READ_ONLY)
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @Schema(description = "更改时间",accessMode = READ_ONLY)
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @Schema(description = "乐观锁",accessMode = READ_ONLY)
    @TableField("version")
    @Version
    private Integer version;

    @Schema(description = "逻辑删除标志",accessMode = READ_ONLY)
    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
